<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/laydate/laydate.js"></script>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="javascript:;">用户管理</a></li>
        <li class="active">用户列表</li>
    </ul>

    <div class="page-header page-header1 clearfix">
        <h3>用户管理</h3>
        <ul class="nav nav-tabs">    
            <li class="active">
                <a href="{:U('Member/memberList')}">用户列表</a>
            </li>
        </ul>
    </div>
    <div class="search-content">
        <form action="{:U('Member/memberList')}" method="post"class="search-form form-inline" role="form">
            <div class="form-group">
                <label class="sr-only" for="nickname">用户昵称</label>
                <input class="earch-input form-control" id="nickname" type="text" name="nickname" value="{$request.nickname}" placeholder="用户昵称"/>　
            </div>
            <input placeholder="请输入开始日期" name="start_time" value="{$start_time}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 180px;height:34px;border-radius:5px">&nbsp;&nbsp;
            <input placeholder="请输入结束日期" name="end_time" value="{$end_time}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 180px;height:34px;border-radius:5px">
            <style>
                #laydate_ys{
                    overflow: hidden;!important;
                }
                .laydate_body .laydate_bottom{
                    height: 40px;!important;
                }
            </style>
            <button type="submit" class="btn derive">查询</button>　
        </form>
    </div>
    <div class="content-box-table">
        <form action="{:U('Member/delMember')}" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                    <tr>
                        <th width="4%">
                            <input class="check-all" type="checkbox" />
                        </th>
                        <th>ID</th>
                        <th>用户昵称</th>
                        <th>用户头像</th>
                        <th>注册时间</th>
                        <th width="10%">操作</th>
                    </tr>
                </thead>
                <tbody class="tbody">
                    <if condition="empty($list)">
                        <tr style="font-size:14px;text-align: center;"><td colspan="20">暂无数据</td></tr>
                    </if>
                    <volist name="list" id="v">
                        <tr>
                            <td><input type="checkbox" value="{$v['m_id']}" name="m_id[]"/></td>
                            <td>{$v['m_id']}</td>
                            <td>{$v['nick_name']}</td>
                            <td><if condition="$v['head_pic'] neq ''"><img src="{$v.head_pic}" style="max-width:80px;"></if></td>

                            <td>{$v['ctime']|date="Y-m-d H:i:s",###}</td>
                            <td>

                                <a href="#" title="删除" class="delete-delete">
                                    <span class="icon glyphicon glyphicon-remove"></span>
                                </a><input type="hidden" value="{:U('Member/delMember',array('m_id'=>$v['m_id']))}">
                            </td>
                        </tr>
                    </volist>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="20">
                            <div class="fr">
                                {$page}
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>

<include file="Public:footer"/>
